//
//  ViedoViewController.m
//  FoodFamily
//
//  Created by dlios on 15-6-24.
//  Copyright (c) 2015年 guoBang. All rights reserved.
//

#import "ViedoViewController.h"

@interface ViedoViewController ()

@end

@implementation ViedoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor lightGrayColor];
   
    
    [self qwerqwer];
}
-(void)qwerqwer
{
    NSURL *url = [NSURL URLWithString:self.mov.materialVideoPath];
    self.Player = [[MPMoviePlayerViewController alloc]initWithContentURL:url];
    
    [self.Player.moviePlayer setScalingMode:MPMovieScalingModeAspectFit];
    
    [self.Player.moviePlayer setControlStyle:MPMovieControlStyleFullscreen];
    
    
    
    [self.view addSubview:self.Player.view];
    
    [self presentMoviePlayerViewControllerAnimated:self.Player];
    
    [self.Player.moviePlayer play];
    
    
    
    [self.navigationController popViewControllerAnimated:YES];


    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
